<template>
	<view>
		<view class="flex justify-between seckill-end">
			<view><text>秒杀</text></view>
			<view><text>{{goodsInfo.curKillEndTime}} 结束</text></view>
		</view>
		<view class="bg-white">
			<view class="group-goods-div">
				<view class="goods-title">{{ goodsInfo.prodName }}</view>
				<view class="margin-top-sm">
					<text class="group-price">￥{{goodsInfo.killPrice}}</text>
					<text class="normal-price">￥{{goodsInfo.price}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	var timer = null;
	export default {
		name: 'seckillGoodsPrice',
		data() {
			return {
				loading: false,
				time: {}, //倒计时
				activityRules: {
					startTime: 0,
					endTime: 0,
					status: '',
					countDownTime: 0
				}
			};
		},
		props: {
			goodsInfo: Object,
		},
		created() {},
		destroyed() {},
		computed: {},
		methods: {
			// 百分比
			_toShop: function() {
				//是否来自于HC的嵌套
				let _mallFrom = uni.getStorageSync(mapping.MALL_FROM)
				if (!_mallFrom) {
					uni.switchTab({
						url: '/pages/shopIndex/index?shopId=' + this.shopId
					})
					return;
				}
				this.vc.navigateTo({
					url: '/pages/cate/cate?shopId=' + this.shopId
				})
			}

		}
	};
</script>

<style lang="scss">
	
	.seckill-end{
		background: #F81A1A;
		color: #FFF;
		height: 60upx;
		line-height: 60upx;
		padding-left: 20upx;
		padding-right:20upx;
		font-size: 24rpx;
	}
	// 正常商品
	.group-goods-div{
		height: 150upx;
		padding:20upx;
		.goods-title{
			font-size: 32upx;
			color: #000;
		}
		.group-price{
			color: #e1212b;
			font-size: 32upx;
		}
		
		.normal-price{
			margin-left: 20upx;
			color: #777;
			font-size: 24rpx;
			text-decoration: line-through;
		}
	}
	.group-goods-desc{
		border-top: 1px solid #f1f1f1;
		height: 150upx;
		padding:20upx;
		.goods-title{
			font-size: 28upx;
			color: #000;
		}
		.goods-desc{
			font-size: 16upx;
			color: #777;
		}
	}
</style>
